package errorCode

var (
	CustomError     = ErrorCode{Code: 500, Message: "服务器错误"}
	PermissionError = ErrorCode{Code: 401, Message: "权限不足"}
)

// ErrorCode 错误码
type ErrorCode struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}
